/*
 * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef SLE_BRIDGE_ERRORS_H
#define SLE_BRIDGE_ERRORS_H

#include <stdlib.h>
#include <string.h>

namespace OHOS {
namespace iotConnect {
enum {
    /* Opration failed */
    SLE_BRIDGE_FAILED = -1,
    /* Success */
    SLE_BRIDGE_SUCCESS = 0,
    /* Ptr is null */
    SLE_BRIDGE_ERR_PTR_NULL = 1,
    /** Invalid input parameters */
    SLE_BRIDGE_ERR_INVALID_PARAM = 2,
    /** Create json obj error */
    SLE_BRIDGE_ERR_CREATE_JSON = 3,
    /** Parse json error */
    SLE_BRIDGE_ERR_PARSE_JSON = 4,
    /** Add json data error */
    SLE_BRIDGE_ERR_ADD_JSON_DATA = 5,
    /** Get json data error */
    SLE_BRIDGE_ERR_GET_JSON_DATA = 6,
    /** Json print error */
    SLE_BRIDGE_ERR_PRINT_JSON = 7,


    /* keep SLE_BRIDGE_ERR_UNKNOWN at the end*/
    SLE_BRIDGE_ERR_UNKNOWN = 99,
};
}
}
#endif
